	<div class="location">当前位置：<a href="#">首页</a> &gt; <span>会员中心</span></div>
    <div class="content">
    	<div class="conRight floatl Box">
        	<?php echo $this->element('index/ucMenu')?>
        </div>
    	<div class="conLeft floatr Box Indtion">
        	<h3 class="vipTitle">订单管理</h3>
          <div class="status">
           	<span>订单编号：<?php echo $userOrder['UserOrder']['id']?></span> 
            <span>订单状态：<em><?php echo $userOrder['UserOrderState']['title']?></em></span>
          </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="vipdd">
              <thead>
                  <tr>
                    <td width="77%" height="36" bgcolor="#7e7e7e" style="text-indent:10px;">寄货地址</td>
                    <td width="13%" height="36" align="center" bgcolor="#7e7e7e">寄货方式</td>
                    <td width="10%" height="36" align="center" bgcolor="#7e7e7e">支付方式</td>
                </tr>
              </thead>
              <tbody>
                  <tr>
                    <td height="80" style="text-indent:10px;">
                    	<?php 
                      		echo $userOrder['UserOrder']['address'].' ';
                      		echo $userOrder['UserOrder']['address_receive'].' (收) ';
                      		echo $userOrder['UserOrder']['address_phone'];
                    	?>
                    </td>
                    <td height="80" align="center">
                    	<?php echo $userOrder['SysGettype']['title']?>
                    </td>
                    <td height="80" align="center">
                    	<?php echo $userOrder['SysPaytype']['title']?>
                    </td>
                  </tr>
              </tbody>
          </table>
          	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="vipdd">
              <thead>
                  <tr>
                    <td width="55%" height="36" bgcolor="#7e7e7e" style="padding-left:10px;">商品名称</td>
                    <td width="12%" height="36" align="center" bgcolor="#7e7e7e">价格</td>
                    <td width="17%" height="36" align="center" bgcolor="#7e7e7e">数量</td>
                    <td width="16%" height="36" align="center" bgcolor="#7e7e7e">总计</td>
                </tr>
              </thead>
              <tbody>
              	<?php foreach ($userOrder['UserOrderList'] as $userOrderList): ?>
                  <tr>
                    <td height="80" style="padding-left:10px;">
                    	<?php echo $this->Html->link($userOrderList['Ticket']['title'],citylink('Tickets','view')+array($userOrderList['Ticket']['id']))?>
                    	<?php if($userOrderList['state']>1){?>
                    			<a href = 'javascript:;' class = 'showeticket' style=color:green>[电子票]</a><br/>
 								<?php echo $this->Html->image(getETicket($userOrderList['id']),array('style'=>'display:none'))?>
                    	<?php }?>
                    </td>
                    <td height="80" align="center"><span>¥<?php echo $userOrderList['price_sigle']; ?></span></td>
                    <td height="80" align="center"><em><?php echo $userOrderList['price_num']; ?></em></td>
                    <td height="80" align="center"><strong>¥<?php echo $userOrderList['price_total']; ?></strong></td>
                  </tr>
			<?php endforeach; ?>
              </tbody>
              <tfoot>
                  <tr>
                    <td colspan="7" valign="top">
                    	 <ul class="money floatr">
                            <li>
                                <span>商品总价：</span>
                                <em>¥<?php echo $userOrder['UserOrder']['price_order']?></em>
                            </li>
                            <li>
                                <span>物流费用：</span>
                                <em>¥<?php echo $userOrder['UserOrder']['price_logistic']?></em>
                            </li>
                            <li class="yingfu">
                                <span>应付金额：</span>
                                <em style="color:#0aa733;">¥<?php echo $userOrder['UserOrder']['price_total']?></em>
                            </li>
                             <?php if($userOrder['UserOrderState']['id'] == 1 && $userOrder['UserOrderPaytype']['id'] == 1):?>
                            <li class = 'tijiao'>
                            	<span style = 'width:100px;text-align:center;float:right'>
  								<?php echo $this->Html->link('去支付',citylink('UserOrders','gotopay')+array($userOrder['UserOrder']['id']),
  											array('target'=>'payform','onclick'=>'showOverlay();return true;'))?>
                            	</span>
                            </li>
                            <?php endif;?>
                        </ul> 
                    </td>
                  </tr>
              </tfoot>
          </table>
		</div>
    </div>	
    <?php echo $this->Html->css('jquery-ui/jquery-ui-1.10.4.custom.min')?>
  <?php echo $this->element('paymethord/confirm_dialog')?>
<script>
$(function(){
	$('.showeticket').toggle(function(){
		$(this).next().next().slideDown();
	},function(){
		$(this).next().next().slideUp();
	})
});
</script>